package com.jj.service;

import com.jj.entity.Dormitory;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface DormitoryService {
    List<Dormitory> selectAllDormitory();
    Dormitory selectAllByIdDormitory(Long id);
    @Transactional
    boolean addDormitory(Dormitory dormitory);
    @Transactional
    boolean updateDormitory(Dormitory dormitory);
    @Transactional
    boolean deleteDormitory(Long id);
}
